Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
Cómo escribir una etiqueta XML con "<" usando el comando de eco del símbolo del sistema XMLHttpRequest

De otras publicaciones de StackOverflow, conozco la máquina de estado de comillas dobles y el uso de ^< (^ como carácter de escape). Todavía no puedo hacer que funcione:

Por la presente mis intentos (con sus resultados):

 var xmldata = "echo ^<?xml version=\"1.0\" encoding=\"utf-8\"?^> >> MyFile.xml |";

Código JavaScript:

 var xmlhttp = new XMLHttpRequest(); var url = '/?uri' var xmldata = "echo ^<?xml version=\"1.0\" encoding=\"utf-8\"?^> >> MyFile.xml |"; xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == XMLHttpRequest.DONE) { if (xmlhttp.status == 200) { console.log(xmlhttp.responseText); } } }; xmlhttp.open("POST",url, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send("mode=exec&path=convert|"+xmldata);

última línea de comando:

 C:\Users\window7_32\WWW\>C:\Windows\sys tem32\cmd.exe /S /D /c "convert|echo ^<?xml version=^"1.0^" encoding=^"utf-8^"?^> >>MyFile.xml|calc "

Necesito ejecutar tres programas,"convert"、"echo"、"calc"

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!